package com.ehotting.edsta.circuitDesign.gen.element.helper;

import com.ehotting.edsta.circuitDesign.gen.element.bean.ScriptResultData;

public class ReturnHelper {


    public static ScriptResultData success(){
        ScriptResultData resultData = new ScriptResultData();
        resultData.setState(0);
        resultData.setMsg("成功");
        return resultData;
    }

    public static ScriptResultData fail(){
        ScriptResultData resultData = new ScriptResultData();
        resultData.setState(1);
        resultData.setMsg("失败");
        return resultData;
    }

    public static ScriptResultData fail(String msg){
        ScriptResultData resultData = new ScriptResultData();
        resultData.setState(1);
        resultData.setMsg(msg);
        return resultData;
    }


}
